package top.malaoshi.netdisk.vo;

import top.malaoshi.netdisk.validation.ValidGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class Note {
    /**
     * t_note_title 表 tid 主键
     */
    private String tid;
    @NotBlank(message = "请输入标题！",groups = ValidGroup.Insert.class)
    @NotBlank(message = "请输入标题！",groups = ValidGroup.UpdateNoteTitle.class)
    @Size(max = 80,message = "标题不能超过80字！",groups = ValidGroup.UpdateNoteTitle.class)
    private String title;
    @NotBlank(message = "请输入内容！",groups = ValidGroup.AddContent.class)
    private String content;
    private String typeId;

    private String file;
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }
}
